//part1:C09:ex9.41.cpp
//init a string from a vector<char>.
#include <iostream>
#include <vector>
#include <string>

int main(void) {
  using namespace std;
  vector<char> vec = {'H', 'e', 'l', 'l', 'o'};
  string str(vec.data(), vec.size());
  cout << str << endl;

  return 0;
}
